import {Component, OnInit} from '@angular/core';
import {SysRegion} from '../entity/sys-region';

@Component({
    selector: 'sys-region-map',
    templateUrl: './sys-region-map.component.html',
    styleUrls: ['./sys-region-map.component.less']
})
export class SysRegionMapComponent implements OnInit {
    initRegion: SysRegion = {
        level: 'COUNTRY',
        areaName: '中国',
        code: '100000'
    };

    ngOnInit(): void {
    }

    regionClick(sysRegion: SysRegion) {
        console.log(sysRegion.areaName);
    }
}
